﻿<Activity mc:Ignorable="sap" x:Class="SLS.WF.Activities.WFEditCenterWorkFlow" 
          xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
          xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:core="clr-namespace:SLS.Core;assembly=CLSCore"
          xmlns:lem="clr-namespace:SLS.ExClassLib.Message;assembly=CLSMessage" 
          xmlns:wfa="clr-namespace:SLS.ExClassLib.WFActivities;assembly=WFActivity" 
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" 
          xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
          xmlns:s="clr-namespace:System;assembly=mscorlib"
          xmlns:s1="clr-namespace:System;assembly=System" 
          xmlns:s2="clr-namespace:System;assembly=System.Xml" 
          xmlns:s3="clr-namespace:System;assembly=System.Core"
          xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" 
          xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
          xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" 
          xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" 
          xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System"
          xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" 
          xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" 
          xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" 
          xmlns:sd="clr-namespace:System.Data;assembly=System.Data" 
          xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
          xmlns:st="clr-namespace:System.Text;assembly=mscorlib" 
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="Settings" Type="InArgument(wfa:WFSettings)" />
  </x:Members>
  <sap:VirtualizedContainerService.HintSize>719,676</sap:VirtualizedContainerService.HintSize>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings>
  <StateMachine DisplayName="WFStateMachine" sad:XamlDebuggerXmlReader.FileName="D:\\SkyDrive\\LanSunStudio\\Source\Basic\\CLSWF\\WFGUI\WFEditCenterWorkFlow.xaml" sap:VirtualizedContainerService.HintSize="679,636">
    <StateMachine.InitialState>
      <State x:Name="__ReferenceID1" DisplayName="Initialize" sap:VirtualizedContainerService.HintSize="114,61">
        <State.Entry>
          <Sequence sap:VirtualizedContainerService.HintSize="300,150">
            <sap:WorkflowViewStateService.ViewState>
              <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
              </scg3:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <wfa:InitializeAtm DisplayName="Initialize Machine" sap:VirtualizedContainerService.HintSize="200,22" />
          </Sequence>
        </State.Entry>
        <sap:WorkflowViewStateService.ViewState>
          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">33,79.5</av:Point>
            <av:Size x:Key="ShapeSize">114,61</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg3:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <State.Exit>
          <wfa:ClearView sap:VirtualizedContainerService.HintSize="300,150" />
        </State.Exit>
        <State.Transitions>
          <Transition DisplayName="Start Machine" sap:VirtualizedContainerService.HintSize="430,606">
            <Transition.Trigger>
              <Sequence sap:VirtualizedContainerService.HintSize="388,208">
                <sap:WorkflowViewStateService.ViewState>
                  <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    <x:Boolean x:Key="IsPinned">False</x:Boolean>
                  </scg3:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <wfa:BookMarkSendMessage JobContent="{x:Null}" Tag="{x:Null}" DisplayName="WaitForMachineJoin" sap:VirtualizedContainerService.HintSize="200,22" JobID="OnAwaitMachineJoin" MachineEvent="MachineJoined" MessageType="WF2UI" Result="[MachineResult]" UpdateFedTime="YES" />
              </Sequence>
            </Transition.Trigger>
            <sap:WorkflowViewStateService.ViewState>
              <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                <av:PointCollection x:Key="ConnectorLocation">107.1,140.5 107.1,170.5 210,170.5 210,229.5</av:PointCollection>
              </scg3:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <Transition.Condition>[MachineResult.MachineStatus = MachineStatus.Ready]</Transition.Condition>
            <Transition.To>
              <State x:Name="__ReferenceID2" DisplayName="Working" sap:VirtualizedContainerService.HintSize="114,61">
                <State.Entry>
                  <Sequence sap:VirtualizedContainerService.HintSize="300,150">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      </scg3:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <wfa:Prompt sap:VirtualizedContainerService.HintSize="200,22" Line="1" Text="Please Insert a new Job." Transition="None" />
                  </Sequence>
                </State.Entry>
                <sap:WorkflowViewStateService.ViewState>
                  <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsPinned">False</x:Boolean>
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    <av:Point x:Key="ShapeLocation">153,229.5</av:Point>
                    <av:Size x:Key="ShapeSize">114,61</av:Size>
                    <x:Double x:Key="StateContainerWidth">100</x:Double>
                    <x:Double x:Key="StateContainerHeight">25</x:Double>
                  </scg3:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <State.Transitions>
                  <Transition DisplayName="Stop Machine" sap:VirtualizedContainerService.HintSize="430,498">
                    <Transition.Trigger>
                      <wfa:WaitForTransition DisplayName="Wait for Power Off" sap:VirtualizedContainerService.HintSize="388,100" MachineTransition="PowerOff" />
                    </Transition.Trigger>
                    <sap:WorkflowViewStateService.ViewState>
                      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                        <av:PointCollection x:Key="ConnectorLocation">210,290.5 210,320.5 90,320.5 90,349.5</av:PointCollection>
                      </scg3:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <Transition.To>
                      <State x:Name="__ReferenceID0" DisplayName="Final State" sap:VirtualizedContainerService.HintSize="114,61" IsFinal="True">
                        <sap:WorkflowViewStateService.ViewState>
                          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                            <x:Boolean x:Key="IsPinned">False</x:Boolean>
                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            <av:Point x:Key="ShapeLocation">33,349.5</av:Point>
                            <av:Size x:Key="ShapeSize">114,61</av:Size>
                          </scg3:Dictionary>
                        </sap:WorkflowViewStateService.ViewState>
                      </State>
                    </Transition.To>
                  </Transition>
                </State.Transitions>
                <State.Variables>
                  <Variable x:TypeArguments="wfa:ResultMessage" Name="NewJob" />
                </State.Variables>
              </State>
            </Transition.To>
          </Transition>
          <Transition DisplayName="Quit" sap:VirtualizedContainerService.HintSize="430,498">
            <Transition.Trigger>
              <wfa:WaitForTransition DisplayName="Wait for Power Off" sap:VirtualizedContainerService.HintSize="388,100" MachineTransition="PowerOff" />
            </Transition.Trigger>
            <sap:WorkflowViewStateService.ViewState>
              <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                <av:PointCollection x:Key="ConnectorLocation">78.6,140.5 78.6,170.5 67.2,170.5 67.2,349.5</av:PointCollection>
              </scg3:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <Transition.To>
              <x:Reference>__ReferenceID0</x:Reference>
            </Transition.To>
          </Transition>
        </State.Transitions>
        <State.Variables>
          <Variable x:TypeArguments="wfa:ResultMessage" Name="MachineResult" />
        </State.Variables>
      </State>
    </StateMachine.InitialState>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">False</x:Boolean>
        <av:Point x:Key="ShapeLocation">270,2.5</av:Point>
        <x:Double x:Key="StateContainerWidth">665</x:Double>
        <x:Double x:Key="StateContainerHeight">600</x:Double>
        <av:PointCollection x:Key="ConnectorLocation">273,77.5 273,82.55 147,82.55</av:PointCollection>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID0</x:Reference>
    <StateMachine.Variables>
      <Variable x:TypeArguments="x:String" Name="RemovePrompt" />
    </StateMachine.Variables>
  </StateMachine>
</Activity>